fs/f2fs: Set a grub_errno if mount fails
authorB Horn <b@horn.uk>
Sun, 12 May 2024 05:15:03 +0000 (06:15 +0100)
committerMiao Wang <shankerwangmiao@gmail.com>
Sun, 15 Feb 2026 13:50:20 +0000 (13:50 +0000)
commit79c335371d91373d767bbbcfeb1a61e2a4dd306e
tree93bedd6b441015126c12a5c55dca404a6d9af1d8
parente1b3096d781fe1a2877a91814db7ec4b5d85ad35
fs/f2fs: Set a grub_errno if mount fails

It was previously possible for grub_errno to not be set when
grub_f2fs_mount() failed if nat_bitmap_ptr() returned NULL.

This issue is solved by ensuring a grub_errno is set in the fail case.

Reported-by: B Horn <b@horn.uk>
Signed-off-by: B Horn <b@horn.uk>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name fs-f2fs-Set-a-grub_errno-if-mount-fails.patch
grub-core/fs/f2fs.c